package com.gilight.base.dto;

import com.alibaba.fastjson.JSONObject;
import com.gilight.base.model.ColdOrderDetail;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class ColdPayOrderDto implements Serializable {
    @NotNull(message = "门店不能为空")
    private Long zzjgId;
    private String zzjgName;
    @NotNull(message = "openId不能为空")
    private String openId;
    @NotNull
    private Double discountPrice;
    @NotNull(message = "订单金额不能为空")
    private Double orderPrice;
    @NotNull(message = "支付金额不能为空")
    private Double realPrice;
    private Date orderTime;
    private Date payTime;
    private List<ColdOrderDetail> orderDetail;

    public Long getZzjgId() {
        return zzjgId;
    }

    public void setZzjgId(Long zzjgId) {
        this.zzjgId = zzjgId;
    }

    public String getZzjgName() {
        return zzjgName;
    }

    public void setZzjgName(String zzjgName) {
        this.zzjgName = zzjgName;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public Double getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(Double discountPrice) {
        this.discountPrice = discountPrice;
    }

    public Double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public Double getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(Double realPrice) {
        this.realPrice = realPrice;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public List<ColdOrderDetail> getOrderDetail() {
        return orderDetail;
    }

    public void setOrderDetail(List<ColdOrderDetail> orderDetail) {
        this.orderDetail = orderDetail;
    }

    public String toString(){
        return JSONObject.toJSONString(this);
    }
}
